package com.scau402.system.service;

import java.util.List;

import com.scau402.common.core.domain.entity.SysUser;
import com.scau402.system.domain.WmsBasicProcessor;

/**
 * 加工厂Service接口
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
public interface IWmsBasicProcessorService 
{
    /**
     * 查询加工厂
     * 
     * @param id 加工厂主键
     * @return 加工厂
     */
    public WmsBasicProcessor selectWmsBasicProcessorById(Long id);

    /**
     * 查询加工厂列表
     * 
     * @param wmsBasicProcessor 加工厂
     * @return 加工厂集合
     */
    public List<WmsBasicProcessor> selectWmsBasicProcessorList(WmsBasicProcessor wmsBasicProcessor);

    /**
     * 新增加工厂
     * 
     * @param wmsBasicProcessor 加工厂
     * @return 结果
     */
    public int insertWmsBasicProcessor(WmsBasicProcessor wmsBasicProcessor);

    /**
     * 修改加工厂
     * 
     * @param wmsBasicProcessor 加工厂
     * @return 结果
     */
    public int updateWmsBasicProcessor(WmsBasicProcessor wmsBasicProcessor);

    /**
     * 批量删除加工厂
     * 
     * @param ids 需要删除的加工厂主键集合
     * @return 结果
     */
    public int deleteWmsBasicProcessorByIds(Long[] ids);

    /**
     * 删除加工厂信息
     * 
     * @param id 加工厂主键
     * @return 结果
     */
    public int deleteWmsBasicProcessorById(Long id);

    public String getMaxCode(SysUser user);

    public String getProcessorCode(String loginUserTenantCode) throws InterruptedException;

    String getNewCode(SysUser user) throws InterruptedException;
}
